package com.ruoyi.ipms_crm.controller;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.ipms_crm.dto.Employee;
import com.ruoyi.ipms_crm.service.EmployeeService;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: isBao
 * @Description:TODO:公司职员controller
 */

@RestController
@RefreshScope
@RequestMapping("/crm/employee")
public class EmployeeController {

    @Resource
    EmployeeService employeeService;

    /* 获取撰稿人 */
    @GetMapping("/getWriter")
    public AjaxResult getEmployee(){
        List<Employee> employeeList = employeeService.selectEmployee();
        return AjaxResult.success(employeeList);
    }
}
